﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.Currency
{
    public class CurrenciesPresenter : Presenter<ICurrenciesView>
    {
        public CurrenciesPresenter(ICurrenciesView view)
            : base(view)
        {
        }

        public void Display()
        {
            View.Currencies = Model.GetCurrencies();
        }

        public void DisplayByPage(int currentPage)
        {
            View.Currencies = Model.GetCurrenciesByPage(currentPage);
        }

        public int GetTotalPage()
        {
            return Model.GetTotalPageFromCurrency();
        }

        public void DisplayActive()
        {
            View.Currencies = Model.GetCurrenciesActive();
        }
    }
}
